<?php /* Smarty version Smarty-3.1.8, created on 2012-07-05 13:52:20
         compiled from "C:/xampp/htdocs/ecommerce/www/themes/adm/templates\marcas\marcas.tpl" */ ?>
<?php /*%%SmartyHeaderCode:52294ff44c4a3e1e40-56199779%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7cf39601fdb0c61e1518601af64cce56719440ac' => 
    array (
      0 => 'C:/xampp/htdocs/ecommerce/www/themes/adm/templates\\marcas\\marcas.tpl',
      1 => 1341507057,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '52294ff44c4a3e1e40-56199779',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4ff44c4a497569_70014057',
  'variables' => 
  array (
    'lista' => 0,
    'listar' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4ff44c4a497569_70014057')) {function content_4ff44c4a497569_70014057($_smarty_tpl) {?><?php if (!is_callable('smarty_function_cycle')) include 'C:\\xampp\\htdocs\\ecommerce\\www\\system\\lib\\smarty\\plugins\\function.cycle.php';
?><?php echo $_smarty_tpl->getSubTemplate ("html.tags.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("html.header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div class="main">
<h1>Marcas - Listagem</h1>
<div class="sub_menu" align="center">
<a class='ajax' href="<?php echo @BASE_URL_ADM;?>
marcas/cadastro/" title="Marcas - Cadastro">Cadastro</a>
</div>
<table border="0" cellpadding="4" cellspacing="0" align="center">
<thead>
<tr>
<td>Marca</td>
<td>Imagem</td>
<td>Status</td>
<td colspan="2"></td>
</tr>
</thead>
<?php  $_smarty_tpl->tpl_vars['listar'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['listar']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['lista']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['listar']->key => $_smarty_tpl->tpl_vars['listar']->value){
$_smarty_tpl->tpl_vars['listar']->_loop = true;
?>
<tr bgcolor="<?php echo smarty_function_cycle(array('values'=>"#F0F0F1,#E0E0E0"),$_smarty_tpl);?>
">
<td><?php echo $_smarty_tpl->tpl_vars['listar']->value['marNom'];?>
</td>
<td align="center"><i class="icon-camera "></i></td>
<td>
    <a href="<?php echo @BASE_URL_ADM;?>
marcas/trocaStatus/<?php echo $_smarty_tpl->tpl_vars['listar']->value['marCod'];?>
/<?php echo $_smarty_tpl->tpl_vars['listar']->value['marSta']=='A' ? 'I' : 'A';?>
" class="status">
        <img src="<?php echo @ADM_IMG_URL;?>
<?php echo $_smarty_tpl->tpl_vars['listar']->value['marSta']=='A' ? 'on' : 'off';?>
.png" alt="" height="16" width="16" />
    </a>
</td>
<td><a class="ajax" href="<?php echo @BASE_URL_ADM;?>
marcas/edita/<?php echo $_smarty_tpl->tpl_vars['listar']->value['marCod'];?>
">Editar</a></td>
<td><a href="<?php echo @BASE_URL_ADM;?>
marcas/excluir/<?php echo $_smarty_tpl->tpl_vars['listar']->value['marCod'];?>
">Excluir</a></td>
</tr>
<?php } ?>
</table>
</div>	 
<?php echo $_smarty_tpl->getSubTemplate ("html.footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>